function autoLogin(a,b){
  $.ajax({
    url: "/admin/login",
    data:{
      'account':localStorage.username,
      'password':localStorage.password
    },
    type: 'post',
    dataType: 'json',
    anysc:false,
    beforeSend: function() {

    },
    success: function(response) {
      if(response.code==500){
        if(a==1){
          location.href = "/admin/m/login";
        }else if(a==2){
          location.href = "http://www.huanju100.cn";
        }

      }else if(response.code==200){
        if(b==1){
          location.href = "/admin/m";
        }
		
		if(b==2){
          document.getElementById("orderPage").style.display = "block";
        }

      }

    }
  });
}
